/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meluk.billboard.game.seaBattle;

import org.meluk.billboard.jpa.seabattle.SBGame;
import org.meluk.billboard.jpa.seabattle.SBPoint;

/**
 *
 * @author AMelnyk
 */
public interface SBGameAPI {

    //returns game id
    public SBGame createComputerGame();

    //returns game id
    public Long createPlayerGame();

    public boolean joinGame(Long gameId);

    //returns true if shoot successful
    public boolean shoot(Long gameId, SBPoint point);

    public boolean finishGame(Long gameId);
}
